home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / picture ƒ / animate.h < prev    next >
Text File  |  1990-11-08  |  887b  |  35 lines

  1. /*
  2. *    FILE:        animate.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    November 8, 1990
  5. *
  6. *    Defines animated nested segment.
  7. */
  8.  
  9. # ifndef    animate_h
  10. # define    animate_h
  11.  
  12. # include    "segment.h"
  13.  
  14. /******************************************************************
  15. *   Nested segment which may be animated.
  16. ******************************************************************/
  17. struct    Animated_Segment:Nested_Segment
  18. {
  19.     Transformation        *animation[MAX_SEGMENTS];
  20.  
  21. /* In C++ the following two instance variables would be 'private'
  22. *    rather than simply 'protected'.  That is, derived classes 
  23. *    should NOT assign to them.  They are assigned only via the
  24. *    log_animated_segment() method.
  25. */
  26.     Animated_Segment    *animated_segment_ptr[MAX_SEGMENTS];
  27.     int                    num_animated_segments;
  28.     
  29.     boolean            init(void);
  30.     virtual void    log_animated_segment(Segment*);
  31.     virtual void    animate(void);
  32.     boolean            destroy(void);
  33. };
  34.  
  35. # endif